<me:UIAM x:Class="WPFExcelReport.TAM04PLC"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"   
                    xmlns:LS="clr-namespace:WPFExcelReport;assembly=TLIEFDAT"   
                    xmlns:DR="clr-namespace:WPFExcelReport;assembly=TDRAUFTR"   
                    xmlns:KS="clr-namespace:WPFExcelReport;assembly=TKSTSTELL"   
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT"  
                    xmlns:WH="clr-namespace:WPFExcelReport;assembly=TLAGPL"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIAM.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter  x:Key="nbv"/>
        <ucd:NOTConverter x:Key="not"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:SDKEYCONV x:Key="sd"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIAM.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"  >
            <WrapPanel  >
                <TextBlock Text="{Binding Source={Localization:Translate Word=设备编号:}}"/>
                <TextBlock Text="{Binding AMNRKRS}" Width="24" />
                <TextBlock Text="{Binding AMLFDNR}" Width="48"   />
                <TextBlock Text="{Binding AMPOS}" Width="36" />
                <ex:TXT72 Text="{Binding AMBEZ,Converter={StaticResource gb2312}}" Width="200" />
                <TextBlock Text="{Binding Source={Localization:Translate Word=IP地址:}}"/>
                <ex:TXT72 Text="{Binding AMHERST,Converter={StaticResource gb2312}}" Width="200" />
            </WrapPanel>
            <WrapPanel> 
                <CheckBox Content="{Binding Source={Localization:Translate Word=标准}}" IsChecked="{Binding IsSTD,ElementName=TV}"/> 
                <TextBlock   Text="{Binding Source={Localization:Translate Word=库位:}}"/>
                <WrapPanel>
                    <ex:TXT72  MaxLength="2" CharacterCasing="Upper"  Text="{Binding AMLO}" Width="30"/>
                    <ex:TXT72  MaxLength="2" CharacterCasing="Upper"  Text="{Binding AMLB}" Width="30"/>
                    <ex:TXT72  MaxLength="8" CharacterCasing="Upper"  Text="{Binding AMLPLATZ}" Width="60"/>
                    <CheckBox  Grid.Column="1" Name="cWH"></CheckBox>
                    <WH:TSWH  KEY="{Binding WH,ElementName=TV}" 
                                  Visibility="{Binding IsChecked,ElementName=cWH,Converter={StaticResource bv}}"/>
                </WrapPanel>

                <LS:TSLS02 Grid.Column="1"  
                                 IsEdit="{Binding IsEdit,ElementName=TV}"
                                   KEY="{Binding Path=LIEFNR,ElementName=TV}"
                                  ORDERNUM="{Binding Path=LIEFNR,ElementName=TV}"
                                    />
                <SD:K8881 Grid.Column="1"  
                                  IsEdit="{Binding IsEdit,ElementName=TV}"
                                   KEY="{Binding Path=AMKST,ElementName=TV}"
                                 ORDERNUM="{Binding Path=AMKST,ElementName=TV}"
                                   Width="Auto" />
                <SD:K0224 KEY="{Binding AMART,ElementName=TV}"
                          IsEdit="{Binding IsEdit,ElementName=TV}"
                          ORDERNUM="{Binding AMART,ElementName=TV}"
                          />
                <SD:K0228 KEY="{Binding AMTYP,ElementName=TV}"
                          IsEdit="{Binding IsEdit,ElementName=TV}"
                          ORDERNUM="{Binding AMTYP,ElementName=TV}"
                          />
                <KS:TSKS03 Grid.Column="1" 
                                  IsEdit="True"
                                   KEY="{Binding Path=AMKST,ElementName=TV}"
                            ORDERNUM="{Binding Path=AMKST,ElementName=TV}"
                                   Width="Auto" />

            </WrapPanel>
        </StackPanel>

    </Grid>
</me:UIAM>
